package com.ww.springboot.boot.util;

import ch.qos.logback.classic.spi.ILoggingEvent;
import ch.qos.logback.core.AppenderBase;
import cn.hutool.json.JSONUtil;

/**
 * 描述：
 *
 * @author wanwei
 * @since 2021-08-05 10:30
 */
public class LogUtil extends AppenderBase<ILoggingEvent> {

    @Override
    protected void append(ILoggingEvent eventObject) {
        System.out.println("----------日志监听-----------");
        System.out.println(JSONUtil.toJsonStr(eventObject));
    }
}
